﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GoogleFusionTable.aspx.cs" Inherits="GoogleMapAPI.GoogleFusionTable" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="jquery-1.4.1.min.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <iframe id="iframe1" width="500px" height="300px" scrolling="no"  src="http://www.google.com/fusiontables/embedviz?viz=MAP&q=select+col0%2C+col1%2C+col2%2C+col3+from+679974+&h=false&lat=39.88076184888243&lng=116.47979736328125&z=12&t=1&l=col2"></iframe>
    </div>
    <iframe width="500px" height="300px" scrolling="no"  src="http://www.google.com/fusiontables/embedviz?viz=MAP&q=select+col0%2C+col1%2C+col2+from+680181+&h=false&lat=-44.11914151643736&lng=172.7490234375&z=5&t=1&l=col2"></iframe>
    <input  type="text"/>
    <input  type="button" value="Search" class="searchButton"/>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".searchButton").click(function () {
                var src = "http://www.google.com/fusiontables/embedviz?viz=MAP&q=select+col0%2C+col1%2C+col2%2C+col3+from+679974+where+Text='GF'+&h=false&lat=39.88076184888243&lng=116.47979736328125&z=12&t=1&l=col2";
                $("#iframe1").attr("src",src)
            });
        });
    </script>
    </form>
</body>
</html>
